package hello;

import java.util.Scanner;

public class Practice3 {
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		System.out.println("请输入4个数");
		int a=in.nextInt();
		int b=in.nextInt();
		int c=in.nextInt();
		int d=in.nextInt();
			int x,y,z;
			x=max(a,b);
			y=max(c,d);
			z=max(x,y);
		System.out.println("最大的数为："+z);
		in.close();}

	public static int max(int a, int b) {
		if(a>b) return a;
		else return b;
	}
}
